home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _B13E48177C124F3D9D28A0B18FE4473C < prev    next >
Encoding:
Text File  |  2003-11-12  |  1.4 KB  |  61 lines

  1. light("spot_spotmap")
  2. {
  3.     pass()
  4.     {
  5.         tmu()
  6.         {
  7.             texgen("spotlight")
  8.             texture()
  9.             {
  10.                 spotmap()
  11.                 addressfunc("clamp", "clamp", "clamp")
  12.                 filtering("linear_no_mip")  //FIXIT
  13.             }
  14.             colorop("mul", "texture", "tfactor", "current")
  15.         }
  16.  
  17.         tmu()
  18.         {
  19.             texgen("spotlight_z_att")
  20.             texture()
  21.             {
  22.                 image("spot_z.png")
  23.                 addressfunc("clamp", "clamp", "clamp")
  24.                 filtering("linear_no_mip")
  25.             }
  26.             colorop("mul", "texture", "current", "current")
  27.         }
  28.         tmu()
  29.         {
  30.             Texture()
  31.             {
  32.                 Mapchannel(0)
  33.                 Image(TEXTURE1)
  34.                 !include(TEX1OPTIONSFILE)
  35.             }
  36.             colorop("mul", "texture", "current", "current")
  37.         }
  38.  
  39.         tmu()
  40.         {
  41.             Texture()
  42.             {
  43.                 Mapchannel(1)
  44.                 Image(TEXTURE2)
  45.                 !include(TEX2OPTIONSFILE)
  46.             }
  47.             colorop("mul", "texture", "current", "current")
  48.             alphaop("arg2", "texture", "tfactor", "current")            
  49.         }
  50.  
  51.         tfactor(1,1,1,0)
  52.         colorgen("tfactor", "user", 0,0,0, "none", 0,0,0)
  53.  
  54.         blendfunc("one", "one")
  55.         depthfunc("lequal", 0)
  56.  
  57.         blackfog()
  58.     }
  59. }
  60.  
  61.